package com.smart.manager.system.entities.body;

import com.smart.common.entities.core.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 *
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RSystemPosition {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RSystemPosition1")
    public static class SearchBody extends BaseSearch {

        @ApiModelProperty("职务代码")
        private String code;


        @ApiModelProperty("职务名称")
        private String name;


    }


    @Data
    @ApiModel("RSystemPosition2")
    public static class EditBody  implements Serializable {


        /**
         * 职务代码
         */
        @ApiModelProperty("职务代码")
        @Length(max= 30,message="职务代码 不能超过30个字符")
        @NotBlank(message = " 职务代码  不能为空")
        private String code;

        @ApiModelProperty("职务名称")
        @Length(max= 10,message="职务代码 不能超过10个字符")
        @NotBlank(message = " 职务代码  不能为空")
        private String name;



        @ApiModelProperty("职务描述")
        @Length(max= 500,message="编码长度不能超过500")
        private String description;



    }


}
